import Cookies from 'js-cookie'

const TokenKey = 'AppId'
const TokenKeyName = 'AppId-Name'

export function getAppId() {
  return Cookies.get(TokenKey)
}

export function getAppName() {
  return Cookies.get(TokenKeyName)
}

export function setAppId(token) {
  return Cookies.set(TokenKey, token)
}

export function setAppName(name) {
  return Cookies.set(TokenKeyName, name)
}

export function removeAppId() {
  return Cookies.remove(TokenKey)
}

export function removeAppName() {
  return Cookies.remove(TokenKeyName)
}
